package com.upb.webserver.common.pojo.crosschain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.upb.webserver.common.pojo.node.RspNodeVO;
import com.upb.webserver.common.pojo.order.BaseRspWorkOrderVO;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class CrossChainDetailVO extends BaseRspWorkOrderVO {
    private String createOrgName;
    private String crossChainName;
    private String[] allOrgs;
    private List<ApplicationNode> applicationNodeList;

    /**
     * 应用及对应的节点列表
     */
    @Data
    public static class ApplicationNode {
        private Integer applicationId;
        private String applicationName;
        private String applicationVersion;
        private Integer chainId;
        private String chainName;
        private Byte chainType;
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date createTime;
        private Integer companyId;
        private String companyName;
        private Integer orgId;
        private String orgName;
        private List<RspNodeVO> nodeList;
    }

}


